package com.longmao.edumsm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author longmao
 * @date 2022/2/21 10:49
 * Content: 获取配置文件信息
 */
@Component
public class MsmPropertiesUtil implements InitializingBean {

    @Value("${tengxun.msm.sdk.SecretId}")
    private String secretId;

    @Value("${tengxun.msm.sdk.SecretKey}")
    private String secretKey;


    public static String SECRET_ID;
    public static String SECRET_KEY;

    @Override
    public void afterPropertiesSet() throws Exception {
        SECRET_ID = secretId;
        SECRET_KEY = secretKey;
    }
}
